﻿using System;
using System.ServiceProcess;
using UdpAuthorizationService.Core;

namespace UdpAuthorizationService.WindowsService
{
	public class UdpAuthorizationService : ServiceBase
	{
		private readonly AuthorizationManager _manager;

		public UdpAuthorizationService()
		{
			_manager = new AuthorizationManager();
		}

		protected override void OnStart(string[] args)
		{
			_manager.Start();
		}

		protected override void OnStop()
		{
			_manager.Stop();
		}
	}
}
